package cn.itsource.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PlaceOrderDTO {
    @NotEmpty
    private List<String> courseIds;// ["3", "9"]
    @NotNull
    private Integer payType;// "1"
    @NotNull(message = "token 不可为空！")
    private String token;// "02ebGX"
    @NotNull
    private String type;// 0 普通订单，1秒杀
}
